using System.Collections.Generic;
using System.Collections.ObjectModel;
using RAD.Modules.AD.Interfaces;
using RAD.Modules.AD.PresentationModels;
using RAD.Modules.AD.Interfaces;
using RAD.Modules.AD.PresentationModels;

namespace RAD.Modules.AD.Tests.Mocks
{
    public class MockNetService : INetService
    {
        private ObservableCollection<ADItem> _dnCollection;
        private ObservableCollection<DetailsItem> _detailsCollection;

        public MockNetService()
        {
            _dnCollection = new ObservableCollection<ADItem>();

            _dnCollection.Add(new ADItem{ Name = "123" });

            _dnCollection.Add(new ADItem{ Name = "456" });
        }

        #region INetService Members

        public ObservableCollection<ADItem> ADItemsCollection
        {
            get { return _dnCollection; }
        }

        public string GetCurrentComputerName()
        {
            return "My P4 computer";
        }

        public string GetCurrentDomainName()
        {
            throw new System.NotImplementedException();
        }

        public string GetDomainController()
        {
            return "My Domain";
        }

        public void PopulateADPresentationModel(ADItem fi)
        {
            
        }

        #endregion

        #region INetService Members


        public ObservableCollection<DetailsItem> DetailsItemsCollection
        {
            get { return _detailsCollection; }
        }

        #endregion
    }
}